<?php
class VInputPassword extends VInput {
	public function __construct($nome, $valor='', $label='', $tag=''){
		$this->nome 	= $nome;
		$this->valor	= $valor;
		$this->label 	= empty($label)?$nome:$label;
		$this->tag		= $tag;
	}

	public function __toString(){
		$n	  = $this->nome;
		$v	  = $this->valor;
		$l	  = ucfirst($this->label) . ":";
		$t	  = $this->tag;
		$html = "<label>\n" .
				"\t<span>$l</span>\n" .
				"\t<input type=\"password\" class=\"input-text\" name=\"$n\" id=\"$n\" value= \"$v\" $t />\n" .
				"</label>\n";
		return $html;
	}
}

?>